export function dirToData(data,title,nextNodeKey){
	console.log("1data:",data);
	const dataTitleKey="title"
	const dataChildrenKey="children"
	const newData=[]
	for(const item of data){
		const obj={}
		if(item[title]){
			obj[dataTitleKey]=item[title]
		}
		if(item[nextNodeKey]&&item[title].length>0){
			obj[dataChildrenKey]=dirToData(item[nextNodeKey],title,nextNodeKey)
		}
		if(obj.title){
			newData.push(obj)
		}
	}
	return newData
}